﻿
namespace System.Linq.Functional
{
    public sealed class MaybeMonad
    {
        public static void LinqExample()
        {
            var r = from x in 7.ToMaybe()
                    from y in Maybe<int>.Nothing
                    select x + y;

            Console.WriteLine("Maybe monad of 7 and nothing is {0}", r.Value);
        }
    }
}
